[NTG-context] Define a new command that inherits from multiple other command options

2024-04-25 Thread ai2472206007
by searching, and I know how to define a new option for it. But what I don't know is how to get it to inherit the options of other commands and perform these features correctly. Any clue is warmly welcome. ``` % macros=mkvi \unprotect \installnamespace {sidenote} \installcommandhandler

[NTG-context] context editor support / syntax highlighting for Pulsar

2024-04-01 Thread Henning Hraban Ramm
ds and environments report commands to the console generate check file report the meaning of commands show the internal representation of commands replace named characters by utf preprocess mkvi files to tex files [force,suffix] use given suffix

Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-18 Thread Hans Hagen via ntg-context
possibly identical, isn't it? and it could also inarguably apply to the circumstances as well. Don't you think? no it isn't, its building upon hat is there: mkii -> mkiv -> mkxl (pdf)tex -> luatex -> luametatex I mean, it's like comparing oranges with apples, and mkii with m

Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?

2023-06-18 Thread Carlos via ntg-context
referring indeed to 'mkii' and not to 'omega' And also suppose for a second that the term 'omega' is to be replaced with 'mkii' on your reply accordingly After careful observation the resemblance is quite possibly identical, isn't it? and it could also inarguably apply to the circumstances as well. Do

[NTG-context] bibliography problem

2022-07-29 Thread Henning Hraban Ramm via ntg-context
tex' publications> adding bib data to set 'dmlig' from source 'dm-ligatures/references.bib' interface > macros > processed mkvi file '/Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/publ-imp-apa.mkvi', delta 94 interface > macros > processed mkvi file '/Users/hra

Re: [NTG-context] how to setup path of ConTeXtLMTX for MacVim?

2021-12-14 Thread Jan-Erik Hägglöf via ntg-context
ewFile,BufRead *.latex,*.sty,*.dtx,*.ltx,*.bbl setf tex "au BufNewFile,BufRead *.texcall dist#ft#FTtex() and instead adding " ConTeXt au BufNewFile,BufRead *.tex,*.ctx,*.mkii,*.mkiv,*.mkvi,*.mkxl,*.mklx setf context It works for Me who only using context as

Re: [NTG-context] Initial release of SBL bibliographic rendering and biblio wishlist

2021-12-10 Thread J Huisman via ntg-context
ormance, > simplifications of the code, and new feature additions are still desirable, > the module is in working condition and can now be incorporated in a future > ConTeXt update. The new .lua and .mkvi files for the SBL rendering, updated > publ-aut.lua and publ-imp-author

[NTG-context] Initial release of SBL bibliographic rendering and biblio wishlist

2021-12-08 Thread Joey McCollum via ntg-context
, simplifications of the code, and new feature additions are still desirable, the module is in working condition and can now be incorporated in a future ConTeXt update. The new .lua and .mkvi files for the SBL rendering, updated publ-aut.lua and publ-imp-author.mkvi files, and some new code intended

Re: [NTG-context] Memo module not working with lmtx

2021-10-15 Thread Jason Ross via ntg-context
are all leaving \stopmemo \stoptext tex error > tex error on line 197 in file /home/jason/.local/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-02.mkvi: Undefined control sequence \???memosectionrenderings \???memosectionrenderings \v!head :\v!m

[NTG-context] Memo module not working with lmtx

2021-10-15 Thread Jason Ross via ntg-context
know that we are all leaving \stopmemo \stoptext The following error is thrown by ConTeXt: tex error > tex error on line 197 in file /home/jason/.local/context/tex/texmf-modules/tex/context/third/letter/base/s-cor-02.mkvi: Undefined control sequence \???memosectionrenderi

Re: [NTG-context] Exclude bibliographic entries from list even when cited with \cite

2021-09-16 Thread Hans Hagen via ntg-context
On 9/16/2021 8:45 PM, Joey McCollum via ntg-context wrote: Hi, It's taken a couple weeks, but I nearly have a working bibliographic rendering for SBL style ready. I'm hosting the .lua and .mkvi files I have so far, as well as a test .bib and .tex file, on GitHub at https://github.com

Re: [NTG-context] Exclude bibliographic entries from list even when cited with \cite

2021-09-16 Thread Denis Maier via ntg-context
and .mkvi files I have so far, as well as a test .bib and .tex file, on GitHub at https://github.com/jjmccollum/context-sbl. The look of the rendering seems to be correct for all of the examples, so the last remaining tasks mostly concern some lower-level technical issues. Because of the way

[NTG-context] Exclude bibliographic entries from list even when cited with \cite

2021-09-16 Thread Joey McCollum via ntg-context
Hi, It's taken a couple weeks, but I nearly have a working bibliographic rendering for SBL style ready. I'm hosting the .lua and .mkvi files I have so far, as well as a test .bib and .tex file, on GitHub at https://github.com/jjmccollum/context-sbl. The look of the rendering seems to be correct

Re: [NTG-context] Number conversion in btxlist and citations

2021-09-16 Thread kauśika cittūr via ntg-context
On Wednesday, September 15, 2021 8:08:59 PM IST kauśika cittūr wrote: > Dear all, > > I have a simple btx definition 'mylist' for which I have written a simple > publ-imp-mylist.lua and publ-imp-mylist-mkvi. In that latter I have > > ⋮ > \definebtx > [mylist] > [de

Re: [NTG-context] Number conversion in btxlist and citations

2021-09-16 Thread kauśika cittūr via ntg-context
On Wednesday, September 15, 2021 8:08:59 PM IST kauśika cittūr wrote: > Dear all, > > I have a simple btx definition 'mylist' for which I have written a simple > publ-imp-mylist.lua and publ-imp-mylist-mkvi. In that latter I have > > ⋮ > \definebtx > [mylist] > [de

[NTG-context] Number conversion in btxlist and citations

2021-09-15 Thread kauśika cittūr via ntg-context
Dear all, I have a simple btx definition 'mylist' for which I have written a simple publ-imp-mylist.lua and publ-imp-mylist-mkvi. In that latter I have ⋮ \definebtx [mylist] [default=default,specification=mylist] \definebtxrendering [mylist] [specification=mylist] \setupbtxlist

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-27 Thread Joey McCollum via ntg-context
le months ago, Ágoston Volcz raised a > similar issue in another thread. I think this approach should solve that > problem, so when I get a chance, I can send an e-mail about that. > > > > Joey > > > > On Thu, Aug 26, 2021 at 3:38 PM Joey McCollum < > jmccollum20140...@gm

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-27 Thread Ágoston Volcz via ntg-context
months ago, Ágoston Volcz raised a similar > issue in another thread. I think this approach should solve that problem, so > when I get a chance, I can send an e-mail about that. > > Joey > > On Thu, Aug 26, 2021 at 3:38 PM Joey McCollum > wrote: >> >>

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-26 Thread Joey McCollum via ntg-context
of the methods defined in publ-ini.mkiv. I now > have something like this in my rendering's .mkvi file: > > ``` > \doifelse {\currentbtxcitealternative} {entry} { > % Normal order for in-text citations > \btxflushauthornormal{author} > } { > % Inverted order fo

Re: [NTG-context] Different author rendering in entry citation vs. list

2021-08-26 Thread Joey McCollum via ntg-context
Okay, I've made some progress! Thankfully, the authorconversion rules can be overridden using some of the methods defined in publ-ini.mkiv. I now have something like this in my rendering's .mkvi file: ``` \doifelse {\currentbtxcitealternative} {entry} { % Normal order for in-text citations

Re: [NTG-context] LMTX: different output if dots are used in the file name

2021-07-08 Thread Marco Patzer
Now, although it's quite some > work, one can think of seeing .13 as part of the filename, in which > case the lookupe becomes > > 10.11.12.13.tex Just to make it clear: I don't use files without .tex/.mkvi/etc. suffix. So I don't expect 10.11.12.13 to work, but 10.11.12.tex should

Re: [NTG-context] Markdown module in LMTX

2021-03-28 Thread Christoph Reller
Hi all, In recent versions of ConTeXt LMTX the markdown module seems to work again. I just copied the files m-markdown.mkiv and m-markdown.loa from a MKVI version into the directory tex\texmf-modules\m-markdown of the LMTX version. I don't believe that this is officially supported and I did

[NTG-context] tex live code freeze

2021-03-05 Thread Hans Hagen
to what extend updates to those engines have side effects for context, but I assume none. Let me know if there are problems. The MKIV code (mkiv, mkvi, mpiv, lua files) has changed but not much, mostly as a side effect of the code split and move to LMTX where the focus is on now. There have

[NTG-context] MkIV and LMTX difference in comma list expansion

2020-10-26 Thread Rik Kabel
complex bit to show the issue.) % macros=mkvi \starttexdefinition unexpanded startBlockQuotation     \dosingleempty\dostartBlockQuotation \stoptexdefinition \starttexdefinition dostartBlockQuotation [#SETUPS]     \getrawparameters[BlockQuotation]   [index=,#SETUPS

Re: [NTG-context] About the use of command handlers

2020-05-29 Thread Hans Hagen
On 5/29/2020 6:29 AM, Jairo A. del Rio wrote: Hello list! I was reading the following: https://wiki.contextgarden.net/Style_Alternatives I wanted to figure out how to make a simple module. However, there's a point in the example below which I don't understand % macros=mkvi \startmodule[look

[NTG-context] About the use of command handlers

2020-05-28 Thread Jairo A. del Rio
Hello list! I was reading the following: https://wiki.contextgarden.net/Style_Alternatives I wanted to figure out how to make a simple module. However, there's a point in the example below which I don't understand % macros=mkvi \startmodule[look] \unprotect \writestatus{loading}{ConTeXt User

Re: [NTG-context] Official file ending?

2020-02-05 Thread Philipp A.
indeed > > > > > >> * .mkiv: Is that just for ConTeXt or all LuaTeX stuff? Would > > it make > > >> sense to give text documents that extension? > > > > > > you can do that (or mkvi or lmtx or ...) > > >

Re: [NTG-context] Official file ending?

2020-02-05 Thread Hans Hagen
ake >>     sense to give text documents that extension? > > you can do that (or mkvi or lmtx or ...) Since there are already *.mkxl files in the ConTeXt distribution, I think it may make sense to name the LMTX version MkXL. In any case, MkXL is simpler and cl

Re: [NTG-context] Official file ending?

2020-02-04 Thread kaddour kardio
ML files > >> inside of ConTeXt itself > > > > context ctx files are xml files indeed > > > >> * .mkiv: Is that just for ConTeXt or all LuaTeX stuff? Would it make > >> sense to give text documents that extension? > > > > you can

Re: [NTG-context] Official file ending?

2020-02-04 Thread Pablo Rodriguez
one? >> >> * .ctx: Would mirror the semi-common .ltx, but is used for XML files >> inside of ConTeXt itself > > context ctx files are xml files indeed > >> * .mkiv: Is that just for ConTeXt or all LuaTeX stuff? Would it make >> sense to give text docum

Re: [NTG-context] Official file ending?

2020-02-04 Thread Philipp A.
Thank you all! What is lmtx? Is there any link with infos? Am Di., 4. Feb. 2020 um 00:53 Uhr schrieb Floris van Manen : > > > On 04-02-2020 00:31, Exp wrote: > > > > Mkiv is a good choice for the moment. If there would be no Mkvi and so > > on, it is good forever. &g

Re: [NTG-context] Official file ending?

2020-02-03 Thread Floris van Manen
On 04-02-2020 00:31, Exp wrote: > > Mkiv is a good choice for the moment. If there would be no Mkvi and so > on, it is good forever. .tex is used for both tex (as well as latex as well as other wrappers). how about for the new context era: .lmtx .F pEpkey.asc Description: applic

Re: [NTG-context] Official file ending?

2020-02-03 Thread Exp
I would suggest to advertise with the ending another trademark that is not a zero-entropy word in the programming world when not randomly capitalized, and, if possible, that is not an everyday English word either. Mkiv is a good choice for the moment. If there would be no Mkvi and so

Re: [NTG-context] Official file ending?

2020-02-03 Thread Wolfgang Schuster
.ltx, but is used for XML files     inside of ConTeXt itself context ctx files are xml files indeed   * .mkiv: Is that just for ConTeXt or all LuaTeX stuff? Would it make     sense to give text documents that extension? you can do that (or mkvi or lmtx or ...)   * Something else? (.tex

Re: [NTG-context] Official file ending?

2020-02-03 Thread Hans Hagen
of ConTeXt itself context ctx files are xml files indeed * .mkiv: Is that just for ConTeXt or all LuaTeX stuff? Would it make sense to give text documents that extension? you can do that (or mkvi or lmtx or ...) * Something else? (.tex doesn’t count, it’s shared with LaTeX files

Re: [NTG-context] serial letters

2019-05-24 Thread Jean-Philippe Rey
loaded open source > level 3, order 4, name '/Users/jprey/Applications/ConTeXt/2018-09-13/tex/texmf-modules/tex/context/third/letter/base/s-cor-01.mkvi' modules > 'cor-00' is loaded open source > level 4, order 5, name '/Users/jprey/Applications/ConTeXt/2018-09-13/tex/te

Re: [NTG-context] No menu bar option for Adobe Reader

2019-05-01 Thread Henning Hraban Ramm
a >> ConTeXt upgrade to create a \setupinteractionscreen[option=nomenubar] switch. >> I wonder if it would be possible to add this little feature to the source >> code. Perhaps it can be useful to others as well. >> Greetings! >> Paul >> Attachment: patch + modified lpdf-mis.lu

Re: [NTG-context] No menu bar option for Adobe Reader

2019-04-28 Thread Hans Hagen
f it would be possible to add this little feature to the source code. Perhaps it can be useful to others as well. Greetings! Paul Attachment: patch + modified lpdf-mis.lua (from ConTeXt MkVI 2019.04.25) ok, but i didn't test it, so you need to check next

[NTG-context] No menu bar option for Adobe Reader

2019-04-27 Thread Paul Schalck
le feature to the source code. Perhaps it can be useful to others as well. Greetings! Paul Attachment: patch + modified lpdf-mis.lua (from ConTeXt MkVI 2019.04.25)if not modules then modules = { } end modules ['lpdf-mis'] = { version = 1.001, comment = "companion to lpdf-ini.mk

[NTG-context] Bidi-related register problem

2019-01-24 Thread Rik Kabel
led properly. This is a recent change; bidi=global worked a few months ago. (I have not tried with LTR text in a default-RTL document). % macros=mkvi \defineregister[Mindex] \setupregister [Mindex] [n=2, maxwidth=4cm, bala

[NTG-context] Problem of compiling a file with Emacs

2018-07-19 Thread Fabrice Couvreur
quot; t) OK ! 5. Coming with the C-c C-c command by having this in my ~ / .emacs file (setenv "PATH" "/ home / aragorn / context / tex / texmf-linux-64 / bin: $ PATH" t) (that's what I do with all other files) No OK ! Thanks. My file Test.tex % macros=mkvi \setuppagenumbe

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-18 Thread Fabrice Couvreur
7/2018 16:40, Hans Hagen wrote: > >> On 7/17/2018 10:30 PM, Rik wrote: > >>> On 7/16/2018 10:24, Fabrice Couvreur wrote: > >>>> % macros=mkvi > >>>> > >>>> \setuppagenumbering[location=footer] > >>>> > >>

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Alan Braslau
\startusableMPgraphic ? > On 17 Jul 2018, at 14:46, Rik Kabel wrote: > > On 7/17/2018 16:40, Hans Hagen wrote: >> On 7/17/2018 10:30 PM, Rik wrote: >>> On 7/16/2018 10:24, Fabrice Couvreur wrote: >>>> % macros=mkvi >>>> >>>> \setuppag

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Rik Kabel
On 7/17/2018 16:40, Hans Hagen wrote: On 7/17/2018 10:30 PM, Rik wrote: On 7/16/2018 10:24, Fabrice Couvreur wrote: % macros=mkvi \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} draw outlinetext.f ("\bf\namedheadnumber{chapter}")

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Hans Hagen
On 7/17/2018 10:30 PM, Rik wrote: On 7/16/2018 10:24, Fabrice Couvreur wrote: % macros=mkvi \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} draw outlinetext.f ("\bf\namedheadnumber{chapter}") (withcolor "lightgray")

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Rik
On 7/16/2018 10:24, Fabrice Couvreur wrote: % macros=mkvi \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} draw outlinetext.f ("\bf\namedheadnumber{chapter}") (withcolor "lightgray") ysized 50pt ; \stopusableMPgraph

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-17 Thread Fabrice Couvreur
titlesec" package. My >>> code compiles under texlive context 2018 but does not compile with last >>> beta contest standalone. >>> >> >> it processes on my machine so what fails? >> >> Thank you >>> Fabrice >>> >&g

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-16 Thread Fabrice Couvreur
t;> code compiles under texlive context 2018 but does not compile with last >> beta contest standalone. >> > > it processes on my machine so what fails? > > Thank you >> Fabrice >> >> >> >> % macro

Re: [NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-16 Thread Hans Hagen
ou Fabrice % macros=mkvi \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} draw outlinetext.f ("\bf\namedheadnumber{chapter}") (withcolor "lightgray") ysized 50pt ; \stopusa

[NTG-context] Compilation problem with the latest version of standalone context(Metafun)

2018-07-16 Thread Fabrice Couvreur
Hello, The idea is to make a chapter header as with the "titlesec" package. My code compiles under texlive context 2018 but does not compile with last beta contest standalone. Thank you Fabrice % macros=mkvi \setuppagenumbering[locat

Re: [NTG-context] How to use fonts.handlers.otf.enhancers.patches?

2018-02-27 Thread Henri Menke
> system > ConTeXt ver: 2017.05.15 21:48 MKIV beta fmt: 2017.12.29 int: english/english system > system > 'cont-new.mkiv' loaded open source > level 2, order 2, name '/usr/local/texlive/2017/texmf-dist/tex/context/base/mkiv/cont-new.mkiv' close source

Re: [NTG-context] Expansion help needed, getvariable and TABLE

2018-01-31 Thread Rik Kabel
ithout the \expanded{\bTC... It does not seem to make a difference here, but perhaps it is needed in some situations. My question is about factoring the \getvariable out of the \bTC rows (in this example) and \defining a simpler macro to hold the value. Should it be done, and if so, how? % macro

[NTG-context] Expansion help needed, getvariable and TABLE

2018-01-30 Thread Rik Kabel
other value? % macros=mkvi engine=luajittex \setvariables  [one]    [a=1a,b=1b] \setvariables  [two]    [a=2a,b=2b] \define    \Sets    {one,two} \starttexdefinition unexpanded doInlineText #SET

Re: [NTG-context] German letter style

2017-12-05 Thread Henning Hraban Ramm
Am 2017-12-05 um 17:28 schrieb Floris van Manen <v...@klankschap.nl>: > lua error > lua error on line 30 in file > /Applications/ConTeXt/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi: > > ...eXt/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:4

Re: [NTG-context] German letter style

2017-12-05 Thread Floris van Manen
/Users/vm/Desktop/tex/test', result 'test' fonts > latin modern fonts are not preloaded languages > language 'en' is active open source > level 2, order 3, name '/Users/vm/Desktop/tex/test.tex' modules > 'letter' is loaded open source > level 3, ord

Re: [NTG-context] 'lua.registercode' bug in latest beta

2017-11-26 Thread Hans Hagen
xt throws: open source > level 4, order 5, name '/tmp/ctx/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi' lua error > lua error on line 30 in file /tmp/ctx/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi: ...ctx/tex/texmf-context/tex/context/

Re: [NTG-context] 'lua.registercode' bug in latest beta

2017-11-26 Thread Marco Patzer
t; > It seems to be caused by 'if options ~= ""' in `lua.registercode'. > That empyt string should be 'nil'? I can confirm the issue, MWE: \usemodule [letter] \starttext \null \stoptext throws: open source > level 4, order 5, name '/tmp/ctx/tex/texmf-modules/tex/conte

Re: [NTG-context] 'lua.registercode' bug in latest beta

2017-11-18 Thread Henning Hraban Ramm
xt/tex/context/base/mkiv/luat-cod.lua:50: bad argument >> #1 to 'gmatch' (string expected, got nil) >> ``` > > Same here: > > lua error > lua error on line 30 in file > /Users/hraban/Library/texmf/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi: >

Re: [NTG-context] 'lua.registercode' bug in latest beta

2017-11-06 Thread Henning Hraban Ramm
gt; ``` Same here: lua error > lua error on line 30 in file /Users/hraban/Library/texmf/tex/texmf-modules/tex/context/third/letter/base/s-cor-00.mkvi: ...xmf/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua:47: bad argument #1 to 'gmatch' (string expected, got nil) stack traceback:

[NTG-context] Problem using nested \processcommalist and \startparagraphs columns

2017-10-25 Thread Rik Kabel
ematic" and run it without that mode and it completes, although without the columns.     % macros=mkvi     \defineparagraphs  [Col] [n=3]     \setupparagraphs   [Col] [1] [width=.31\textwidth]     \setupparagraphs   [Col] [2] [width=.31\textwidth]     \setupparagraphs   [Col] [3]

Re: [NTG-context] compiling the mkiv-publications manual

2017-10-04 Thread luigi scarso
rtBTX $> context --mode=atpragma mkiv-publications.tex works $ context --version mtx-context | ConTeXt Process Management 1.02 mtx-context | mtx-context | main context file: /opt/luatex/mkvi-experimental/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
I turn around !! It does not work 2017-08-19 1:15 GMT+02:00 Rik <r...@panix.com>: > On 2017-08-18 19:01, Fabrice Couvreur wrote: > > If I test this file, it does not work > > % macros=mkvi > > \startcomponent dm-1 > > \environment MyLayout > >

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik
On 2017-08-18 19:01, Fabrice Couvreur wrote: If I test this file, it does not work % macros=mkvi \startcomponent dm-1   \environment MyLayout   \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m}   \dorecurse{20}{\input knuth}   \math{x^2+4x+5=0} \stopcomponent 2017-08-19 0:23

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi Aditya it does not work 2017-08-19 1:01 GMT+02:00 Fabrice Couvreur <fabrice1.couvr...@gmail.com>: > If I test this file, it does not work > > % macros=mkvi > > \startcomponent dm-1 > > \environment MyLayout > > \MyHeader{Seconde}{17}{08}{2

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
If I test this file, it does not work % macros=mkvi \startcomponent dm-1 \environment MyLayout \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m} \dorecurse{20}{\input knuth} \math{x^2+4x+5=0} \stopcomponent 2017-08-19 0:23 GMT+02:00 Rik Kabel <c

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Aditya Mahajan
# MyLayout.tex # % macros=mkvi Save this file as MyLayout.mkvi Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik Kabel
for me if I compile the Aditya file. I have another problem with a simple structure. I created the file MyLayout.tex containing the macro and I want to call this macro in the dm1.tex file, but it does not work. Thank you Fabrice # MyLayout.tex # %

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
e. I created the file > MyLayout.tex containing the macro and I want to call this macro in the > dm1.tex file, but it does not work. > Thank you > Fabrice > > # > MyLayout.tex > # > > % macros=mkvi > > \startenvironment MyLayout > > \setuplay

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Rik Kabel
# MyLayout.tex # % macros=mkvi \startenvironment MyLayout \setuplayout    [header=3\lineheight,     headerdistance=\lineheight] \setupbackgrounds   [header]   [text]   [     frame=off,     bottomframe=on,     framecolor=darkgray,     rulethickness=2pt,   ] \defineframed

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hello, It's ok for me if I compile the Aditya file. I have another problem with a simple structure. I created the file MyLayout.tex containing the macro and I want to call this macro in the dm1.tex file, but it does not work. Thank you Fabrice # MyLayout.tex # % macros=mkvi

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Otared Kavian
Hi Aditya, Thanks for having sent the example file: indeed with your file I can typeset the example and see the expected result. I don’t know what happened when I copied and pasted the example from the e-mail… I think the command % macros = mkvi was not set correctly written at the first

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Aditya Mahajan
On Fri, 18 Aug 2017, Otared Kavian wrote: Hi Aditya, I tried to typeset your example, but got an error: whether or not the command % macros=mkvi is present on the fist line, then ConTeXt complains saying that ! Illegal parameter number in definition of \MyHeader and stops

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
uot;mailing list for ConTeXt users" <ntg-context@ntg.nl> > Envoyé: Vendredi 18 Août 2017 11:45:47 > Objet: Re: [NTG-context] About \setupheadertexts : simplify a code > > Hi Aditya, > > I tried to typeset your example, but got an error: whether or not the > command &g

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
" <ntg-context@ntg.nl> > Envoyé: Vendredi 18 Août 2017 11:45:47 > Objet: Re: [NTG-context] About \setupheadertexts : simplify a code > > Hi Aditya, > > I tried to typeset your example, but got an error: whether or not the > command > % macros=mkvi > i

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Jean-Pierre Delange
example, but got an error: whether or not the command % macros=mkvi is present on the fist line, then ConTeXt complains saying that ! Illegal parameter number in definition of \MyHeader and stops typesetting pointing to the command \stoptexdefinition. What am I missing here? Thanks

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Fabrice Couvreur
Hi, @Aditya and Henri Thank you for your suggestions. @Otared Maybe remove \showframe ? Fabrice 2017-08-18 11:45 GMT+02:00 Otared Kavian <ota...@gmail.com>: > Hi Aditya, > > I tried to typeset your example, but got an error: whether or not the > command > % mac

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-18 Thread Otared Kavian
Hi Aditya, I tried to typeset your example, but got an error: whether or not the command % macros=mkvi is present on the fist line, then ConTeXt complains saying that ! Illegal parameter number in definition of \MyHeader and stops typesetting pointing to the command

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Aditya Mahajan
also simplify other things as well. This is how I would have done it: % macros=mkvi \showframe \setuplayout [header=3\lineheight, headerdistance=\lineheight] \setupbackgrounds [header] [text] [ frame=off, bottomframe=on, framecolor=darkgray, rulethickness=2pt

Re: [NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Henri
where \\ {#time}}}] \stoptexdefinition    \MyHeader{Seconde}{17}{08}{2017}{Devoir surveillé}{1}{1h\,30m} \starttext \input knuth \stoptext > > % macros=mkvi > \setuplayout >    [header=3\lineheight, >     headerdistance=\lineheight] > > \setupbackgrounds[header][text] > [fra

[NTG-context] About \setupheadertexts : simplify a code

2017-08-17 Thread Fabrice Couvreur
Hello, To get the alignment, I had to create three \vbox. Can we simplify this code a bit ? Thank you Fabrice % macros=mkvi \setuplayout [header=3\lineheight, headerdistance=\lineheight] \setupbackgrounds[header][text] [frame=off, bottomframe

[NTG-context] How do I insert characters before \par

2017-03-31 Thread Rik Kabel
ConTeXters, I am stymied trying to insert characters into a buffer, or failing that, to back up, removing the \par, and adding characters after the buffer is loaded. The code I am working with reduces to this: 1. % macros=mkvi engine=luajittex 2. \starttexdefinition

Re: [NTG-context] Using key as numbering in \placepublications

2017-01-23 Thread Antoine Cailliau
Thank you very much. I was using the (old) bibtex module. Using the mkvi publication mechanism was the key. Antoine On 19 January 2017 at 16:19, Alan Braslau <alan.bras...@cea.fr> wrote: > On Thu, 19 Jan 2017 08:19:03 +0100 > Antoine Cailliau <antoinecaill...@gmail.com> wrot

Re: [NTG-context] ntg-context Digest, Vol 151, Issue 18

2017-01-18 Thread Hans Hagen
ithash directives trackers experiments epub ctx|ctxfile interface plus for scite language From what I know there is also: macros E.g. % macros=mkvi indeed but that one is handled internally (in context)

Re: [NTG-context] ntg-context Digest, Vol 151, Issue 18

2017-01-18 Thread Christoph Reller
> What other parameters can I set this way and what is the syntax to set >>> multiple parameters? >>> >>> Cheers, >>> Henri > > engine > synctex > jiton > jitha

Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-19 Thread Hans Hagen
(i don't have asymptote installed nor time to check it) but if the code you pass gets expanded then you can add expandable macros or \the\foo kind of code to it Hans Fabrice % macros=mkvi \usemodule[filter] \defineexternalfilter [ASY] [ filter={asy -tex "context" -out

Re: [NTG-context] Asymptote or Metapost and ConTeXt parameters.

2016-12-19 Thread Fabrice Couvreur
Hello, I do not answer the question, but I'm interested because I also use Asymptote. The following code works with context in texlive 2016 but does not work with standalone context. thank you, Fabrice % macros=mkvi \usemodule[filter] \defineexternalfilter [ASY] [ filter={asy -tex

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Tobias Berndt
.d only contains this : > > fab @ debian: ~ $ cd .emacs.d / > fab @ debian: ~ / .emacs.d $ ls -l > total 8 > drwx -- 2 fab fab 4096 October 28 2:37 p.m. auto-save-list > drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA > fab @ debian: ~ / $ .emacs.d > > Consider the

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-29 Thread Fabrice Couvreur
ebian: ~ / .emacs.d $ ls -l >>> total 8 >>> drwx -- 2 fab fab 4096 October 28 2:37 p.m. auto-save-list >>> drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA >>> fab @ debian: ~ / $ .emacs.d >>> >>> Consider the following file: >>> If

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Michael Eidenbenz
096 October 28 2:37 p.m. auto-save-list > drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA > fab @ debian: ~ / $ .emacs.d > > Consider the following file: > If I make a C-c C-c, all I get is the text in italics, the macro is not > compiled. > Thanks, > Fabrice > &g

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Mica Semrick
total 8 >>> drwx -- 2 fab fab 4096 October 28 2:37 p.m. auto-save-list >>> drwxr-xr-x 5 fab fab 4096 October 28 2:26 p.m. ELPA >>> fab @ debian: ~ / $ .emacs.d >>> >>> Consider the following file: >>> If I make a C-c C-c, all I get

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Fabrice Couvreur
fab @ debian: ~ / $ .emacs.d >> >> Consider the following file: >> If I make a C-c C-c, all I get is the text in italics, the macro is not >> compiled. >> Thanks, >> Fabrice >> >> % macros=mkvi >> >> \setupcolors[state=start] >> \define

Re: [NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Mica Semrick
in italics, the macro is not >compiled. >Thanks, >Fabrice > >% macros=mkvi > >\setupcolors[state=start] >\definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] >\definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] > > >\defineframedtext > [MyDefinition] > [b

[NTG-context] Emacs24 + AucTeX + ConTeXt

2016-10-28 Thread Fabrice Couvreur
, Fabrice % macros=mkvi \setupcolors[state=start] \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00] \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00] \defineframedtext [MyDefinition] [before={\blank[line,halfline]}, after={\blank}, frame=off, background=MyFrame, width

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-12 Thread Mingranina Gingranina
) >> > context(fontentry["filename"]) >> > context.NC() >> > context.NR() >> > end >> > context.stoptabulate() >> > >> > \stopluacode >> > >> > \stoptext >> >> However, inspir

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-11 Thread Mohammad Hossein Bateni
ot;rawname"]) > > context.NC() > > context(fontentry["filename"]) > > context.NC() > > context.NR() > > end > > context.stoptabulate() > > > > \stopluacode > > > > \stoptext > >> However, inspired b

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-10 Thread Mingranina Gingranina
bulate() > > \stopluacode > > \stoptext >> However, inspired by your reply I could get it to work in LuaTeX but >> not in ConTeXt with Dabeer module. >> >> Are there any other set of features that I can test? > ConTeXt inludes a few modules which can be used to

Re: [NTG-context] How to use "fontsampler example" with Persian font

2016-10-10 Thread Wolfgang Schuster
there any other set of features that I can test? ConTeXt inludes a few modules which can be used to show font information (search for s-fonts-*.mkiv|mkvi and s-math-*.mkiv|mkvi), below is a example from s-fonts-tables.mkiv: \usemodule[fonts-tables] \setupbodyfont[pagella] \starttext \show

[NTG-context] Resume module with moderncv interface

2016-10-06 Thread Jonas Baggett
.tex resolvers > modules > 'resume' is loaded interface > macros > processed mkvi file '/usr/share/texmf/tex/context/third/letter/base/s-cor-03.mkvi', delta 84 interface > macros > processed mkvi file '/usr/share/texmf/tex/context/third/letter/base/s-cor-03.mkvi',

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Fabrice Couvreur
-mpgraph.mpy ntg46-mpgraph.pdf ntg46-mpgraph.tuc >> > > this is more modern (the method, not the font): > > \startusableMPgraphic{NumberHead} > draw outlinetext.d > ("\bf\namedheadnumber{chapter}") > (withpen pencircle scaled .1) &

Re: [NTG-context] Remove files that are not needed (Metafun)

2016-07-12 Thread Hans Hagen
t;\bf\namedheadnumber{chapter}") (withpen pencircle scaled .1) ysized 60pt ; \stopusableMPgraphic % macros=mkvi \setuppagenumbering[location=footer] \startusableMPgraphic{NumberHead} picture r ; r := image ( graphictext "\bf\namedheadnumber{chapter}&

  1   2   3   >